package org.scboy.utils.entitys.coobi;

import java.util.List;

/**
 * 数据库表的配置
 * @author yanghao
 *
 */
public class DbTable {

	/**
	 * 表名称
	 */
	private String name;
	
	/**
	 * 表说明有
	 */
	private String comment;
	
	/**
	 * 表字段
	 */
	private List<DbColumn> columns;
	

	/**
	 * 索引
	 */
	private List<DbIndex> indexs;
	
	/**
	 * 表版本
	 * @return
	 */
	private int version=0;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public List<DbColumn> getColumns() {
		return columns;
	}

	public void setColumns(List<DbColumn> columns) {
		this.columns = columns;
	}

	public int getVersion() {
		return version;
	}

	public void setVersion(int version) {
		this.version = version;
	}

	public List<DbIndex> getIndexs() {
		return indexs;
	}

	public void setIndexs(List<DbIndex> indexs) {
		this.indexs = indexs;
	}
	
}
